package server.gameplay;

import java.awt.Point;

public class Shot {
	Unit target;
	long timer;
	
	public Shot(Point start, Unit target) {
		this.target = target;
		timer = System.currentTimeMillis();
	}
	
	public boolean hit() {
		return System.currentTimeMillis() - timer >= 400;
	}

	public Unit getUnit() {
		return target;
	}

}
